<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">商品管理</a></li>
            <li class="active"><a href="<?php echo site_url('tourismprofitrate/grid')?>">分润模板管理</a></li> 
        </ul>
        <div class="product-view-area">
            <a href="<?php echo site_url('tourismprofitrate/add')?>">添加分润模板</a>
        </div>
        <?php echo execute_alert_message();?>
        <div class="tourism-product-list">
            <div class="order-dan clearfix">
                <ul class="order-httList">
                    <li class="active">
                        <a href="<?php echo site_url('tourismprofitrate/grid');?>">全部模板</a>
                    </li>
                </ul>
            </div>
            <?php if ( $page_list->num_rows() > 0 ):?>
                <table class="table">
                    <thead>
                        <tr>
                            <th>模板名称</th>
                            <th>采购商比率</th>
                            <th>手续费率</th>
                            <th>一级代理比率 </th>
                            <th>二级代理比率 </th>
                            <th>发展商比率 </th>
                            <th>分销商比率 </th>
                            <th>采购商UID </th>
                            <th>一级代理UID</th>
                            <th>二级代理UID</th>
                            <th>发展商UID</th>
                            <th>分销商UID</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php foreach( $page_list->result() as $item ):?>
                        <tr>
                            <td><?php echo $item->name;?></td>
                            <td><?php echo $item->purchaser;?></td>
                            <td><?php echo $item->beizhu;?></td>
                            <td><?php echo $item->manager_l1;?></td>
                            <td><?php echo $item->manager_l2;?></td>
                            <td><?php echo $item->growth;?></td>
                            <td><?php echo $item->seller;?></td>
                            <td><?php echo $item->purchaser_id;?></td>
                            <td><?php echo $item->manager_l1_id;?></td>
                            <td><?php echo $item->manager_l2_id;?></td>
                            <td><?php echo $item->growth_id;?></td>
                            <td><?php echo $item->seller_id;?></td>
                            <td>
                                <p>
                                    <a class="btn btn-default btn-xs" href="<?php echo site_url('tourismprofitrate/edit/'.$item->rate_id);?>">编辑</a>
                                    <a class="btn btn-danger btn-xs" href="<?php echo site_url('tourismprofitrate/logicDelete/'.$item->rate_id);?>" onclick="return confirm('确定删除吗')">删除</a>
                                </p>
                            </td>
                        </tr>
                    <?php endforeach ;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else: ?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>